package org.example.utils;

public class RedisConstants {
    public static final String LOGIN_CODE_KEY = "login:code:";
    public static final Long LOGIN_CODE_TTL = 2L;
    public static final String LOGIN_USER_KEY = "login:token:";
    public static final Long LOGIN_USER_TTL = 30L;

    public static final Long CACHE_NULL_TTL = 2L;


    public static final String CACHE_NEWS_KEY = "cache:news:";
    public static final String CACHE_NEWSTYPE_KEY = "cache:newstype:";

    //商店
    public static final Long CACHE_SHOP_TTL = 30L;
    public static final String CACHE_SHOP_KEY = "cache:shop:";
    public static final String CACHE_SHOPTYPE_KEY = "cache:shoptype:";

    public static final String LOCK_SHOP_KEY = "lock:shop:";
    public static final Long LOCK_SHOP_TTL = 10L;
    public static final String GOOD_INFO_STOCK_KEY = "goodinfo:stock:";




    public static final String SHOP_GEO_KEY = "shop:geo:";
    
    
    //活动
    
    public static final Long CACHE_ORGANIZER_TTL = 30L;
    public static final String CACHE_ORGANIZER_KEY = "cache:organizer:";
    public static final String CACHE_ORGANIZERTYPE_KEY = "cache:organizertype:";
    public static final String LOCK_ORGANIZER_KEY = "lock:organizer:";
    public static final Long LOCK_ORGANIZER_TTL = 10L;
    public static final String ACTIVITY_INFO_STOCK_KEY = "activityinfo:stock:";

    public static final String ORGANIZER_GEO_KEY = "organizer:geo:";

    //酒店
    public static final Long CACHE_HOTEL_TTL = 30L;
    public static final String CACHE_HOTEL_KEY = "cache:hotel:";
    public static final String CACHE_HOTELTYPE_KEY = "cache:hoteltype:";
    public static final String LOCK_HOTEL_KEY = "lock:hotel:";
    public static final Long LOCK_HOTEL_TTL = 10L;
    public static final String ROOM_INFO_STOCK_KEY = "roominfo:stock:";

    public static final String HOTEL_GEO_KEY = "hotel:geo:";


    //租赁
    public static final Long CACHE_OWNER_TTL = 30L;
    public static final String CACHE_OWNER_KEY = "cache:owner:";
    public static final String CACHE_OWNERTYPE_KEY = "cache:ownertype:";

    public static final String LOCK_OWNER_KEY = "lock:owner:";
    public static final Long LOCK_OWNER_TTL = 10L;
    public static final String HOUSE_INFO_STOCK_KEY = "houseinfo:stock:";
    public static final String OWNER_GEO_KEY = "owner:geo:";
    
    //

    public static final String NEWS_LIKED_KEY = "news:liked:";

    public static final String BLOG_LIKED_KEY = "blog:liked:";
    public static final String FEED_KEY = "feed:";
    public static final String USER_SIGN_KEY = "sign:";
}
